<?php
function vote_good() {
	// Revert
	//return "<a href=\"thankyou-good.php\" \">Good</a>";
	return onclick("vote","click","good",1);
}
function vote_neutral() {
	//return "<a href=\"thankyou.php\" \">Neutral</a>";
	return onclick("vote","click","neutral",0);
}
function vote_bad() {
	//return "<a href=\"thankyou-bad.php\" \">Bad</a>";
	return onclick("vote","click","bad",-1);
}
//
//
//

function outlink($u){
	return onclick("outlink","click",$u,0);
}
//
// TODO: add prices here to monetize the outclicks
//
function amazon_event($u) {
	return onclick("outlink","amazon-click",$u,0);
}
function amazon_image_event($u) {
	return onclick("outlink","amazon-image-click",$u,0);
}
//
//
//
function onclick($cat,$act,$lab,$val) {
	// onClick="_gaq.push(['_trackEvent', 'Videos', 'Play', 'Baby\'s First Birthday']);">Play</a>

	return "onClick=\"_gaq.push(['_trackEvent', '" .
			$cat . "', '" .
			$act . "', '" .
			$lab . "']);\"";

}
?>
